//
//  CutFruitLayer.h
//  SchoolLunchFood
//
//  Created by luotianqiang1 on 16/10/27.
//
//

#ifndef CutFruitLayer_h
#define CutFruitLayer_h

#include "BaseStepLayer.h"
class CutFruitLayer: public BaseStepLayer {
      DECLARE_DYNCLASS(CutFruitLayer);
public:
    CREATE_SECENE(CutFruitLayer);
protected:
    bool init();
    virtual void touchEnd(ui::Widget* widget);
    virtual void onEnterTransitionDidFinish();
    void createFood(const string&);
    void show();
    void addParicle(const Vec2& v);
    void cutAllEnd();
protected:
    vector<Node*> foods;
    vector<string> cutPaths;
    vector<Node*> cutLines;
    StudioLayer* fruitlayer;
};

#endif /* CutFruitLayer_h */
